package com.huli.exception;

public enum ExceptionEnum {
    SERVERS_ERROR(0000, "服务器异常"),
    ARGS_MISTAKE(0001, "您发送的参数错误"),
    THREAD_ERR(0003,"线程异常或是连接有误"),
    REDIS_TIMEOUT(0051,"redis连接超时");

    private int code;
    private String message;

    ExceptionEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
